/**
 * 
 */
package com.shisfish.library.Utils.Global;

import java.util.HashMap;
import java.util.Map;

/**@author shisfish
 * @date 2015年11月6日 上午10:19:53 
 * @Description 
 */
public class GlobalVariable{
	public static final Map<String, Object> GLOBALMAP = new HashMap<String, Object>();
	public static final Map<String, Object> CHOMAP = new HashMap<String, Object>();
	
	public static final int SUBJECT_BIG = 0;
	
	public static final int ADMIN = 0;
	public static final int USER = 1;
	
	public static final String SELECT_ERROR = "查询失败！";
	public static final String SELECT_SUCCESS = "查询成功！";
	public static final String ADD_ERROR = "添加失败！";
	public static final String ADD_SUCCESS = "添加成功！";
	public static final String UPDATE_ERROR = "修改失败！";
	public static final String UPDATE_SUCCESS = "修改成功！";
	public static final String DELETE_ERROR = "删除失败！";
	public static final String DELETE_SUCCESS = "删除成功！";
	
	public static final String TO_RELOGIN = "请重新登陆！"; 
	
	public static final String CHANGEPASS_SUCCESS = "修改密码成功！";
	public static final String CHANGEPASS_ERROR = "修改密码失败！";
		
	public static final String CACHE_FILE = "/ehcache.xml"; 
	
	/** 缓存name */
	public static final String ISLOGIN = "islogin";
	public static final String ADMIN_LOGIN = "admin_login";
	public static final String USER_LOGIN = "user_login";
	public static final String SYS_MAILBOX = "sys_mailbox";
	
	/** 返回数值 */
	public static final String STATUS_CODE = "statusCode";
	public static final int SUCCESS = 0;
	public static final int ERROR = 1;
	/** 未登录 */
	public static final int NOT_LOGGED_IN = 10001; 
	public static final int LOGIN_WR = 10002;
	public static final int PASS_WR = 10003;
	public static final int CHANGE_PASS_WR = 10004;
	
	/** 邮箱发送失败 */
	public static final int SENDEMAIL_WR = 20001;
	
	public static final int INADEQUATE_PERMISSIONS = 30001;
	
	public static final int SELECT_WR = 40001;
	public static final int UPDATE_WR = 40002;
	public static final int INSERT_WR = 40003;
	public static final int DELETE_WR = 40004;
	public static final int SELECT_EMPTY = 40005;
	
	/** 图书超期或可借/预约图书为0（不可借/预约书） */
	public static final int OVERDUE_QUOTA = 50001; 
	
}
